cmake_minimum_required(VERSION 3.8)
project ("test")

# add_subdirectory("string_test")
# CMakeList.txt: Namespace_test  CMake 
# cmake_minimum_required (VERSION 3.8)

# set subdirectory <include>:
set(H_PATH   include)
include_directories(${H_PATH})

set(H_LIST  ${H_PATH}/string_test.h)

#set directory <src>:
set(CPP_PATH  src)
include_directories(${CPP_PATH})
set(CPP_LIST ${CPP_PATH}/string_test.cpp )

set(exec_name "test")
add_executable (${exec_name} ${CPP_LIST}  ${H_LIST})